import {
    request
} from "../utils/http.js"; //导入我们封装的请求方法。

//判断用户是否是达人 0 不是 1 是
export const getCustomerTalentType = (data) => {
    return request({
        url: `/douyin/video/talent/v1/getCustomerTalentType`,
        method: "GET",
        data
    })
}
//首页 足迹信息
export const getDouyinVideoAreaInfo = (code) => {
    return request({
        url: `/douyin/video/area/v1/getDouyinVideoAreaInfo/${code}`,
        method: "GET",
    })
}
//足迹列表
export const getDouyinVideoTalentWorkInfoByPage = (data) => {
    return request({
        url: `/douyin/video/area/v1/getWorkImageTextByPage`,
        method: "GET",
        data
    })
}
//显示位置信息
export const worksGetInfo = (id) => {
    return request({
        url: `/douyin/video/talent/works/v1/getInfo/${id}`,
        method: "GET",
    })
}
//小视频达人作品线路位置信息列表
export const getWorkRoutesInfoList = (id) => {
    return request({
        url: `/douyin/video/talent/works/v1/getWorkRoutesInfoList/${id}`,
        method: "GET",
    })
}
// 收藏
export const worksCollect = (data) => {
    return request({
        url: '/douyin/video/talent/works/v1/collect',
        method: "POST",
        data
    })
}
//线路图文详情信息
export const getImageText = (id) => {
    return request({
        url: `/douyin/video/talent/works/v1/getImageText/${id}`,
        method: "GET",
    })
}
//线路图文详情信息
export const getWorksStatus = (id) => {
    return request({
        url: `/douyin/video/talent/works/v1/getStatus/${id}`,
        method: "GET",
    })
}